//
//  CXAgreeView.m
//  GongJiJin
//
//  Created by 凯朱 on 2022/4/6.
//

#import "OSTipView.h"
@implementation OSTipView
-(void)awakeFromNib{
    [super awakeFromNib];
    self.backgroundColor = [OSColor_1 colorWithAlphaComponent:0.5];
    
    self.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(closeAction)];
    self.bgView.backgroundColor = OSWhiteColor;
    self.bgView.layer.cornerRadius = 5;
    self.bgView.layer.masksToBounds = YES;
    [self addGestureRecognizer:tap];
}

-(void)closeAction{
    if (self.delegate && [self.delegate respondsToSelector:@selector(osTipViewDismiss)]) {
        [self.delegate osTipViewDismiss];
    }
    [self removeFromSuperview];
}


@end
